export const BLOCK_TYPE = {
  // This is used to represent a normal text block (paragraph).
  UNSTYLED: 'unstyled',
  HEADER_ONE: 'header-one',
  HEADER_TWO: 'header-two',
  HEADER_THREE: 'header-three',
  HEADER_FOUR: 'header-four',
  HEADER_FIVE: 'header-five',
  HEADER_SIX: 'header-six',
  UNORDERED_LIST_ITEM: 'unordered-list-item',
  ORDERED_LIST_ITEM: 'ordered-list-item',
  BLOCKQUOTE: 'blockquote',
  PULLQUOTE: 'pullquote',
  CODE: 'code-block',
  ATOMIC: 'atomic',
};

export const ENTITY_TYPE = {
  LINK: 'LINK',
  IMAGE: 'IMAGE',
};

export const INLINE_STYLE = {
  BOLD: 'BOLD',
  CODE: 'CODE',
  ITALIC: 'ITALIC',
  STRIKETHROUGH: 'STRIKETHROUGH',
  UNDERLINE: 'UNDERLINE',
};


export const HEADINGS = [
  {label: 'H1', style: BLOCK_TYPE.HEADER_ONE},
  {label: 'H2', style: BLOCK_TYPE.HEADER_TWO},
  {label: 'H3', style: BLOCK_TYPE.HEADER_THREE},
  {label: 'H4', style: BLOCK_TYPE.HEADER_FOUR},
  {label: 'H5', style: BLOCK_TYPE.HEADER_FIVE},
  {label: 'H6', style: BLOCK_TYPE.HEADER_SIX}
];

export const INLINE_STYLES = [
  {icon: 'fa fa-bold', style: INLINE_STYLE.BOLD},
  {icon: 'fa fa-italic', style: INLINE_STYLE.ITALIC},
  {icon: 'fa fa-strikethrough', style: INLINE_STYLE.STRIKETHROUGH},
  {icon: 'fa fa-underline', style: INLINE_STYLE.UNDERLINE}
];

export const BLOCK_LISTS = [
  {icon: 'fa fa-list-ul', style: BLOCK_TYPE.UNORDERED_LIST_ITEM},
  {icon: 'fa fa-list-ol', style: BLOCK_TYPE.ORDERED_LIST_ITEM},
  {icon: 'fa fa-quote-left', style: BLOCK_TYPE.BLOCKQUOTE}
];

export const customStyleMap = {
  CODE: {
    backgroundColor: '#f3f3f3',
    fontFamily: '"Inconsolata", "Menlo", "Consolas", monospace',
    fontSize: 16,
    padding: 2
  },

  'STRIKETHROUGH': {
    textDecoration: 'line-through'
  }
};